package com.aaa.dao;

import com.aaa.pojo.LoanInfo;
import com.aaa.pojo.UserRight;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserRightDao {
    // 查询 网贷审核
    List<UserRight> selectAll();
    //修改  审核通过
    @Update("update myloan set as_id=1 where ml_id=#{ml_id}")
    Boolean update1(String ml_id);
    //修改  审核不通过
    @Update("update myloan set as_id=0 where ml_id=#{ml_id}")
    Boolean update2(String ml_id);


    // 查询 网贷信息
    List<LoanInfo> selectInfo();
}
